const { defineConfig } = require('@vue/cli-service');
const {name} = require('./package.json');

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    output: {
      publicPath: '/', // 默认值，会被 __webpack_public_path__ 覆盖
      library: `${name}-[name]`,
      libraryTarget: 'umd',
      chunkLoadingGlobal: `webpackJsonp_${name}`,
    }
  },
  devServer: {
    open: true,
    port: 4003,
    headers: {
      'access-control-allow-origin': '*'
    }
  }
})
